//
//  ReduceTicketPersonCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/12/15.
//  Copyright © 2017年 AudioCtrip. All rights reserved.
//

#import "ReduceTicketPersonCell.h"

@implementation ReduceTicketPersonCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.nameLabel.textColor = kSubitleColor;
    self.enNameLabel.textColor = kContentColor;
}


- (IBAction)deletBtnClicked:(UIButton *)sender {
    
    if (_delegate && [_delegate respondsToSelector:@selector(deletTheMember:)]) {
        
        [_delegate deletTheMember:self.model];
    }
    
}

- (void)configDataWith:(TicketMemberInfoModel *)model {
    self.model = model;
    self.nameLabel.text = model.realname;
    self.enNameLabel.text = [NSString stringWithFormat:@"%@ / %@",model.firstname,model.lastname];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
